import request from "@/plugins/axios";
// 部门列表
export function listApi(data) {
  return request({
    url: "/admin/department/index",
    method: "post",
    data,
  });
}
// 部门添加、修改
export function addApi(data) {
  return request({
    url: "/admin/department/save",
    method: "post",
    data,
  });
}
// 部门删除
export function delApi(data) {
  return request({
    url: "/admin/department/delete",
    method: "post",
    data,
  });
}
